package View;
import javax.swing.*;

import Model.SolarSystem;
import Model.Universe;

import java.awt.*;
/**
 * @author boredsome1
 *
 */
public class UniWindow extends JPanel{
	
	Universe un;
	
	public UniWindow(Universe universe) {
		un = universe;
	}
	
	public void paint(Graphics g) {
		SolarSystem[][] s = un.getUniverse();
		
		
		
		for (int i = 0; i < SolarSystem.Width - 1; i++) {
			for (int j = 0; j < SolarSystem.Height - 1; j++) {
				if (s[i][j]!=null) {
					g.setColor(Color.red);
					g.fillRect((i-1)*3, (j-1)*3, 3, 3);					
				} else {
					g.setColor(Color.black);
					g.fillRect((i-1)*3, (j-1)*3, 3, 3);	
				}
			}
			System.out.print('\n');		
		}
		
	    Dimension d = this.getPreferredSize();
	    int fontSize = 20;
	}
	
	
}
